<template>
  <div>
    <el-form
      :inline="true"
      style="text-align: center"
      :label-position="positiondirect"
    >
      <el-form-item label="省市(区县):">
        <el-input
          type="text"
          :value="hospital.province"
          v-model="hospital.province"
        />
      </el-form-item>
      <el-form-item label="医院名称:">
        <el-input type="text" :value="hospital.name" />
      </el-form-item>
      <el-form-item label="银行卡号:">
        <el-input type="text" :value="hospital.card" /></el-form-item
      ><br />
      <el-form-item label="租金金额:">
        <el-input type="text" :value="hospital.rent" />
      </el-form-item>
      <el-form-item label="收益分成:">
        <el-input type="text" :value="hospital.income" />
      </el-form-item>
      <el-form-item label="创建时间:">
        <el-input type="text" :value="hospital.time" /> </el-form-item
      ><br />
      <el-form-item label="省市">{{}}</el-form-item>
      <el-form-item label="省市">{{}}</el-form-item>
      <el-form-item label="省市">{{}}</el-form-item><br />
      <el-form-item label="省市">{{}}</el-form-item>
      <el-form-item label="省市">{{}}</el-form-item>
      <el-form-item label="省市">{{}}</el-form-item><br />
      <el-button type="primary">
        <router-link :to="'/hospital/updateHospital/' + hospital.id"
          >编辑</router-link
        >
      </el-button>
      <el-button type="primary"
        ><router-link to="/hospital/hospitalList">取消</router-link></el-button
      >
    </el-form>
  </div>
</template>

<script>
export default {
  data() {
    return {
      hospital: {},
      positiondirect: "left",
    };
  },
  mounted() {
    var id = this.$route.params.id;
    this.$axios({
      url: `http://localhost:8080/jiapei/hospital/hospitalDetail/${id}`,
      method: "GET",
    }).then((res) => {
      this.hospital = res.data.data.hospital;
    });
  },
};
</script>

<style>
</style>